/**
 * 
 */
package org.ranch.web;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

/**
 * @author Jmpango
 * 
 */
public class SendDataToMobileApp {

    public boolean isSending = false;

    public void sendDataToMobile(HttpServletResponse response, String data) throws IOException {
	if (isSending) {
	    PrintWriter printWriter = response.getWriter();
	    printWriter.println(data);
	}
    }

}
